import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/parkMch/list',
    method: 'post',
    data: query
  })
}

export function deleteParkMch(query) {
  return request({
    url: '/parkMch/deleteParkMch',
    method: 'post',
    data: query
  })
}

export function createParkMch(query) {
  return request({
    url: '/parkMch/createParkMch',
    method: 'post',
    data: query
  })
}

export function updateParkMch(query) {
  return request({
    url: '/parkMch/updateParkMch',
    method: 'post',
    data: query
  })
}

export function parkMchDetail(id) {
  return request({
    url: '/parkMch/' + id,
    method: 'get',
  })
}